package com.gjm.demo.service;

import com.gjm.demo.controller.ArticleInfoController;
import com.gjm.demo.mapper.ArticleInfoMapper;
import com.gjm.demo.model.ArticleInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

@Service
public class ArticleInfoService {

    @Autowired
    private ArticleInfoMapper articleInfoMapper;

    @Autowired
    private ArticleInfoController articleInfoController;

    public Integer getUid() {
        String content = articleInfoController.getUid();
        ArticleInfo articleInfo = articleInfoMapper.selectAll(content);
        return articleInfo.getUid();
    }
}
